<template>
	<view class="zh-not-network">
		<image src="@/static/imgs/no_internet.png" class="not-network-img"/>
		<view class="des" @click="refresh">
			<text class="text text-decoration">网络连接失败，点击重试</text>
		</view>
	</view>
</template>

<script setup lang="ts">
	import { system } from '@/utils'
	const refresh = () => {
		system.getNetworkType().then(()=> {
			uni.switchTab({
				url:'/pages/index/index'
			})
		})	
	}
</script>

<style lang="scss" scoped>
	.zh-not-network {
		text-align:center;
		.not-network-img {
			width: 502rpx;
			height: 275rpx;
			margin-top:400rpx;
		}
		.des {
			text-align:center;
			.text {
				font-size: 28rpx;
				color:#8B8B8B;
			}
		}
	}
</style>
